const routes = [
  {
    path: '/',
    redirect: '/index'
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/Home.vue'),
    children: [
      {
        path: '/mine',
        name: 'mine',
        component: () => import('@/views/Mine.vue'),
        meta: {
          title: '我的'
        }
      },
      {
        path: '/order',
        name: 'order',
        component: () => import('@/views/Order.vue'),
        meta: {
          title: '订单'
        }
      },
      {
        path: '/find',
        name: 'find',
        component: () => import('@/views/Find.vue'),
        meta: {
          title: '发现'
        }
      },
      {
        path: '/index',
        name: 'index',
        component: () => import('@/views/Index.vue'),
        meta: {
          title: '主页'
        }
      }
    ],
    meta: {
      title: '首页'
    }
  },
  {
    path: '/login',
    component: () => import('_c/mine/header/Login.vue'),
    meta: {
      title: '登录'
    }
  },
  {
    path: '/personalinfo',
    name: 'personal',
    component: () => import('_c/mine/header/PersonalInfo.vue'),
    meta: {
      title: '个人中心'
    }
  },
  {
    path: '/changepwd',
    name: 'changepwd',
    component: () => import('_c/mine/header/ChangePwd.vue'),
    meta: {
      title: '修改密码'
    }
  },
  {
    path: '/redenvelope',
    name: 'redenvelope',
    component: () => import('_c/mine/section/RedEnvelope.vue'),
    meta: {
      title: '红包'
    },
    children: [
      {
        path: '/redenve',
        component: () => import('_c/mine/section/redenvelope/RedEnve.vue')
      },
      {
        path: '/shopred',
        component: () => import('_c/mine/section/redenvelope/ShopRed.vue')
      },
      {
        path: '/diyongquan',
        component: () => import('_c/mine/section/redenvelope/DiYongQuan.vue')
      }
    ]
  },
  {
    path: '/goldcoin',
    name: 'goldcoin',
    component: () => import('_c/mine/section/GoldCoin.vue'),
    meta: {
      title: '金币'
    }
  },
  {
    path: '/activitedpage',
    name: 'activitedpage',
    component: () => import('@/views/ActivitedPage.vue'),
    meta: {
      title: '分享送红包'
    }
  },
  {
    path: '/exchangere',
    component: () => import('@/views/Exchange.vue'),
    meta: {
      title: '兑换'
    }

  },
  {
    path: '/goldcoinshop',
    component: () => import('_c/mine/main/GoldCoinShop.vue'),
    meta: {
      title: '金币商城'
    }
  },
  {
    path: '/getposition',
    name: 'getposition',
    component: () => import('_c/index/GetPosition.vue'),
    meta: {
      title: '获取定位'
    }
  },
  {
    path: '/chooseposition',
    naem: 'chooseposition',
    component: () => import('_c/index/ChoosePosition.vue'),
    meta: {
      meta: '选择城市'
    }
  },
  {
    path: '/myaddress',
    name: 'myaddress',
    component: () => import('_c/mine/main/address/MyAddress.vue'),
    meta: {
      title: '我的地址'
    }
  },
  {
    path: '/editaddress',
    name: 'editaddress',
    component: () => import('_c/mine/main/address/EditAddress.vue'),
    meta: {
      title: '地址'
    }
  },
  {
    path: '/searchaddr',
    name: 'searchaddr',
    component: () => import('_c/mine/main/address/SearchAddr.vue'),
    meta: {
      title: '搜索地址'
    }
  },
  {
    path: '/bindphone',
    name: 'bindphone',
    component: () => import('_c/mine/header/ChangeBindPhone.vue'),
    meta: {
      title: '绑定新手机'
    }
  },
  {
    path: '/changephone',
    name: 'changephone',
    component: () => import('_c/mine/header/ChangePhone.vue'),
    meta: {
      title: '绑定手机'
    }
  },
  {
    path: '/kefu',
    name: 'kefu',
    component: () => import('_c/mine/main/MyKefu.vue'),
    meta: {
      title: '我的客服'
    }
  },
  {
    path: '/rules',
    name: 'rules',
    component: () => import('_c/mine/main/Rules.vue'),
    meta: {
      title: '规则与资质'
    }
  },
  {
    path: '/searchshop',
    name: 'searchshop',
    component: () => import('_c/index/SearchShop.vue'),
    meta: {
      title: '搜索商铺'
    }
  },
  {
    path: '/shopcommodity1',
    name: 'shopcommodity1',
    component: () => import('_c/index/ShopCommodity.vue')
  },
  {
    path: '/shopcommodity2',
    name: 'shopcommodity2',
    component: () => import('_c/index/NewShopCommodity.vue')
  },
  {
    path: '/buysvip',
    name: 'buysvip',
    component: () => import('@/views/BuySvip.vue'),
    meta: {
      title: '开通会员'
    }
  },
  {
    path: '/test',
    name: 'test',
    component: () => import('@/views/Test.vue')
  },
  {
    path:'/businessqualification',
    name: 'businessqualification',
    component: () => import('@/views/BusinessQualification.vue'),
    meta: {
      title: '营业资质'
    }
  },
  {
    path: '/categoryshop',
    name: 'categoryshop',
    component: () => import('@/views/CategoryShop.vue')
  },
  {
    path: '/cateshop',
    name: 'cateshop',
    component: () => import('_c/index/CateShop.vue')
  },
  {
    path: '/clearing',
    name: 'clearing',
    component: () => import('@/views/ClearingPage.vue')
  }
]

export default routes
